snapshot: Only create clip nodes if we need to
authorTimm Bäder <mail@baedert.org>
Fri, 1 Dec 2017 06:38:43 +0000 (07:38 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 1 Dec 2017 06:38:43 +0000 (07:38 +0100)
commit94184eda4214b3162eead554212443b3a0f50481
treeb0f213a07a2dfe3549700250b9e16dbc60e537ee
parent7b60ee93161bebc95c253a9b19ac81cb4eeb1128
snapshot: Only create clip nodes if we need to

Clip nodes have a clip rect and we only need to actually create a clip
node if any child node gets clipped at all. If the clip rect conains the
child node bounds entirely, we don't need a clip node.
gtk/gtksnapshot.c